package com.face.server.common.domain.entity;


import lombok.Data;

import java.sql.Timestamp;

@Data
public class PaperDeviceStatus {

    private Long paperTakingDeviceId;
    /**
     * 纸巾状态状态
     * 1：有纸；
     * 0：无纸
     */
    private Integer paperStatus;

    /**
     * 侧门状态
     * 0：关
     * 1：开
     */
    private Integer sideDoorStatus;


    /**
     * 纸余量
     * 激光测距 单位 cm
     */
    private Integer paperAllowance;

    /**
     * 创建时间
     */
    private Timestamp created;

    /**
     * 解析数据展示
     * paperStatus = 0 无纸
     * if paperStatus = 1
     * if paperAllowance == 30 显示充足
     * else if paperAllowance == 31  显示不足
     * else 显示 paperAllowance cm
     */
    private String paperDeviceStatusName;

}
